.global _outp
.global _inp

;------------------------------------------------------------------------------
; write a byte to the specified port
; void outp(uint port, uchar val)

_outp:
	push bp
	mov bp,sp
	mov dx,[bp+4]
	mov ax,[bp+6]
	out dx,al
	pop bp
	ret

;------------------------------------------------------------------------------
; read a byte from the specified port
; uchar inp(uint port)

_inp:
	push bp
	mov bp,sp
	mov dx,[bp+4]
	in al,dx
	xor ah,ah
	pop bp
	ret
